Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix android build StopTextInput error #2160

Conversation

leoCottret
Copy link
Collaborator

@leoCottret leoCottret commented Nov 4, 2022

Summary

SUMMARY: Bugfixes "Fix android build StopTextInput error"

Purpose of change

(Should) fix #2158

Describe the solution

Use SDL_StopTextInput() instead of StopTextInput().
SDL_StopTextInput() being a wrapper that we didn't port yet from DDA.

Testing

I can't test it (I can't build the Android version locally).
But, since it uses a known function instead and that was already what was used in precedent versions of DDA.
Worse case scenario, the diary is buggy on Android.
Best case scenario, everything works perfectly.
In both cases, the Android build won't be broken anymore, so people will be able to download the experimental again.

@github-actions github-actions bot added the src changes related to source code. label Nov 4, 2022
@Coolthulhu
Copy link
Member

I thought that it is used in many locations, but apparently string_editor_window.h is only included in its own .cpp and in diary_ui.cpp, so it's no big deal.
I'll merge it as a quick fix, then test it afterwards, since builds being blocked is a much higher priority problem than diary being potentially unusable/softlock/crash.

@Coolthulhu Coolthulhu merged commit c2ebb51 into cataclysmbnteam:upload Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android builds failing due to undeclared StopTextInput
2 participants